package com.cc8w.home.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cc8w.entity.UserEntity;
import com.cc8w.home.service.UserService;

@Controller
@RequestMapping("/home/index")
public class IndexController {
	
	@Autowired
    private UserService userService;
	/**
	 * 首页方法  
	 * /home/index/index.do
	 */
	@RequestMapping("/index")
	public String index() {	
        UserEntity userPojo = userService.queryUserByUserName("fps2tao");
        System.out.println(userPojo);
		return null;
	}
	

}